<?php
require_once 'models/models_user.php';
$mod = $_GET['mod'];
$obuser = new models_user();
switch ($mod)
{
	case 'dangky':{  
			if($_POST){
			$pass=md5($_POST['mk']);
			$obuser->addUserdangky($_POST['txthovaten'],$pass, $_POST['txtdienthoai'],$_POST['txtmail'],$_POST['txtdiachi']);
			echo '<script>window.location.href="index.php?mod=dangkythanhcong"</script>';
		}
		require 'views/main/dangky/index.php';
		break;
	}
	case 'dangkythanhcong':
		{
			require_once 'views/main/dangky/dangkythanhcong.php';
			break;
		}
}